<div class="ucenterRight">
    <div class="orderCover">
        <div class="orderNav">
            <a href="/my-course/1/1.html" class="<?php echo $type==1 ?'on':'' ?>">直播课程</a>
            <a href="/my-course/2/1.html" class="<?php echo $type==2 ?'on':'' ?>">录播课程</a>
        </div>
        <!-- 订单列表   -->
        <div class="orderList">
            <!--  正常订单显示 每一条订单-->
            <?php if (!empty($data['data'])) { ?>
            <?php foreach ($data['data'] as $key => $value){ ?>
                <div class="orderItem">
                    <p class="orderItemTitle"><span>订单号：<?php echo $value['orderNumber']?></span><span>下单时间：<?php echo date('Y-m-d H:i', $value['createTime'])?></span></p>
                    <div class="orderContent">
                        <div class="contentLeft">
                            <?php echo $value['course']['name'] ?>
                        </div>
                        <div class="contentCenter">
                            <p>x <?php echo $value['num'] ?></p>
                            <p>
                                <span>主讲老师：申友资深讲师团</span>
                                <?php if ($value['orderBelong']==8){ ?>
                                    <span>课程时长：<?php echo $value['course']['listeningFile']?></span>
                                <?php } else {?>
                                    <span>课程时长：<?php echo $value['course']['duration']?></span>
                                <?php } ?>
                            </p>
                            <p>
                                <?php if ($value['orderBelong'] == 8){ ?>
                                    <span>开课日期：/</span>
                                <?php }else{ ?>
                                    <span>开课日期：<?php echo str_replace('开课时间：', '', $value['course']['classTime'])?></span>
                                <?php } ?>
                                <span>性价比：/</span>
                            </p>
                        </div>
                        <div class="contentRight">
                            <?php if ($value['orderBelong'] == 8){ ?>
                                <a href="https://ielts.thinkwithu.com/course/detail/<?php echo $value['course']['id'] ?>.html" target="_blank">
                                    查看详情
                                </a>
                            <?php } else { ?>
                                <a href="https://www.thinkuprep.com/course-detail/<?php echo $value['course']['id'] ?>.html" target="_blank">
                                    查看详情
                                </a>
                            <?php }?>
                        </div>
                    </div>
                    <?php if ($value['video'] && $value['status'] == 3) { ?>
                    <!--对应的视频列表-->
                    <div class="courseVideoCover">
                        <!--对应的视频列表每一种分类列表-->
                        <?php foreach ($value['video'] as $val){ ?>
                        <div class="courseVideoList">
                            <div class="ListName"><?php echo $val['type'] ?></div>
                            <div class="courseVideoListCover">
                                <?php foreach ($val['data'] as $v){ ?>
                                    <?php if ($value['order_form'] == 1) { ?>
                                        <a href="https://live.thinkwithu.com/video/ielts-<?php echo $v['sdk'] ?>.html" target="_blank" class="courseVideoItem">
                                            <p><?php echo $v['name'] ?></p>
                                            <img src="https://file.viplgw.cn/ui/gre/cn/images/gre-play.png" alt="图标">
                                        </a>
                                    <?php } else { ?>
                                        <?php if ($v['sdk_type'] == false) {?>
<!--                                            --><?php //if ($value['livesdkid']['sdkType'] != 3){ ?>
<!--                                                <a href="https://www.thinkwithu.com/person-center/myVideo/--><?php //echo $v['id'] ?><!--.html?belong=--><?php //echo $value['orderBelong'] ?><!--" target="_blank" class="courseVideoItem">-->
<!--                                                    <p>--><?php //echo $v['name'] ?><!--</p>-->
<!--                                                    <img src="https://file.viplgw.cn/ui/gre/cn/images/gre-play.png" alt="图标">-->
<!--                                                </a>-->
<!--                                            --><?php //} else {?>
                                                <a href="https://live.thinkwithu.com/video/ielts-<?php echo $v['sdk'] ?>.html" target="_blank" class="courseVideoItem">
                                                    <p><?php echo $v['name'] ?></p>
                                                    <img src="https://file.viplgw.cn/ui/gre/cn/images/gre-play.png" alt="图标">
                                                </a>

<!--                                            --><?php //} ?>
                                        <?php } else {?>
<!--                                            --><?php //if ($v['sdk_type'] != 3) { ?>
<!--                                                <a href="https://www.thinkwithu.com/person-center/myVideo/--><?php //echo $v['id'] ?><!--.html?belong=--><?php //echo $value['orderBelong'] ?><!--" target="_blank" class="courseVideoItem">-->
<!--                                                    <p>--><?php //echo $v['name'] ?><!--</p>-->
<!--                                                    <img src="https://file.viplgw.cn/ui/gre/cn/images/gre-play.png" alt="图标">-->
<!--                                                </a>-->
<!--                                            --><?php //} else { ?>
                                                <a href="https://live.thinkwithu.com/video/ielts-<?php echo $v['sdk'] ?>.html" target="_blank" class="courseVideoItem">
                                                    <p><?php echo $v['name'] ?></p>
                                                    <img src="https://file.viplgw.cn/ui/gre/cn/images/gre-play.png" alt="图标">
                                                </a>
<!--                                            --><?php //} ?>
                                        <?php } ?>
                                    <?php } ?>                                    
                                <?php } ?>
                            </div>
                        </div>    
                        <?php } ?>
                        
                    </div>    
                    <?php } ?>
                    
                </div>    
            <?php } ?>
            <?php } ?>
        </div>
        <!-- 分页-->
        <div class="pageSize">
            <ul>
                <?php if ($data['count']>0){ ?>
                    <?php for ($i=1; $i <= $total; $i++) { ?>
                        <a href="/classes/<?php echo $type?>/<?php echo $i?>.html" class="iPage <?php echo $i==$page?'on':'' ?>"><?php echo $i ?></a>
                    <?php } ?>
                <?php } ?>
            </ul>
        </div>
    </div>
</div>
<!-- <script src="https://file.viplgw.cn/ui/thinku-ielts-new/js/ucenter/course.js"></script> -->